package cn.itcast.n3_Java线程;

import cn.itcast.Constants;
import cn.itcast.util.FileReader;
import lombok.extern.slf4j.Slf4j;

/**
 * @program: juc
 * @description:
 * @author: flyduck
 * @create: 2024-08-28 15:17
 **/
@Slf4j(topic = "c.Test06_start和run方法_start之前和之后线程状态变化")
public class Test06_start和run方法_start之前和之后线程状态变化 {
    public static void main(String[] args) {
        Thread t1 = new Thread("t1"){
            @Override
            public void run() {
                log.debug("running...");
            }
        };
        System.out.println("t1.getState() = " + t1.getState().toString().toLowerCase());//new
        t1.start();
        System.out.println("t1.getState() = " + t1.getState().toString().toLowerCase());//runnable

    }

}
